package com.leisurexi.aop.features.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.Ordered;


/**
 * 测试多个 Aspect 配置类中 @Before 执行的优先级
 *
 * @author: leisurexi
 * @date: 2021-05-21 15:17
 */
@Aspect
public class AspectConfig2 implements Ordered {

    @Before("execution(public * *(..))")
    public void beforeAnyPublicMethod() {
        System.out.println("@Before any public method.(2)");
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
